package com.jaydenxiao.androidfire.ui.main.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.jaydenxiao.androidfire.R;

public class threeFragment extends Fragment {

    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View root = inflater.inflate(R.layout.threefragment, null);
        root.findViewById(R.id.redian).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent =new Intent(getActivity(),Web1Activity.class);
                intent.putExtra("url", "http://www.yhuizhan.com/pzzx/");
                startActivity(intent);
            }
        });

        root.findViewById(R.id.cenue).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                cenuedetailActivity.startAction(getActivity());
            }
        });

        root.findViewById(R.id.ketang).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                cenuedetailActivity.startAction(getActivity());
            }
        });

        root.findViewById(R.id.kxian).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                kxiandetailActivity.startAction(getActivity());
            }
        });

        root.findViewById(R.id.zhibiao).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                zhibiaoxxdetailActivity.startAction(getActivity());
            }
        });


        return root;
    }
}
